package com.lzb.findphone.dialog;

import android.content.Context;
import android.media.AudioManager;
import android.view.Gravity;
import android.view.View;
import android.widget.SeekBar;

import androidx.annotation.NonNull;

import com.blankj.utilcode.util.VolumeUtils;
import com.lzb.findphone.R;
import com.lzb.findphone.basic.dialog.BaseSmartDialog;
import com.lzb.findphone.databinding.DialogTipBinding;

public class TipDialog extends BaseSmartDialog<DialogTipBinding> implements View.OnClickListener {


    public TipDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int getGravity() {
        return Gravity.CENTER;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_tip;
    }

    @Override
    protected void initView(View view) {
        mDataBinding.tvConfirm.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        int id = v.getId();
        if (id == R.id.tvConfirm) {
            dismiss();
        }
    }

    private Ilistener listener;

    public void setListener(Ilistener listener) {
        this.listener = listener;
    }

    public interface Ilistener {
        void click(String name);
    }
}
